package com.bjc.platform.service.impl;

import java.util.List;
import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bjc.platform.model.AdmAuthority;
import com.bjc.platform.repository.AdmAuthorityRepo;
import com.bjc.platform.service.AdmAuthorityService;

/**
 * 
 * AdmAuthority业务逻辑处理器实现类
 * 
 */
@Service
public class AdmAuthorityServiceImpl extends BaseServiceImpl implements
		AdmAuthorityService {

	@Autowired
	AdmAuthorityRepo admAuthorityRepo;

	@Override
	public void deleteByRoleId(Long roleId) {
		admAuthorityRepo.deleteByRoleId(roleId);
	}

	@Override
	public List<AdmAuthority> sava(Set<AdmAuthority> auths) {
		return admAuthorityRepo.save(auths);
	}
}
